using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace QuanLyKhachSan
{
    public class PhongBUS
    {
        // Them mot doi tuong Phong
        public static bool Insert(PhongDTO phongdto)
        {
            return PhongDAO.Insert(phongdto);
        }

        // Xoa mot doi tuong Phong
        public static bool Delete(int maPhong)
        {
            return PhongDAO.Delete(maPhong);
        }

        // Cap nhat mot doi tuong Phong
        public static bool Update(PhongDTO phongdto)
        {
            return PhongDAO.Update(phongdto);
        }

        // Lay tat ca danh sach Phong 
        public static DataTable LayDanhSachPhong()
        {
            return PhongDAO.LayDanhSachPhong();
        }
         // Lay tat ca danh sach Phong theo Ma loai Phong
        public static DataTable LayDanhSachPhongTheoLoai(int maLoaiPhong)
        {
            return PhongDAO.LayDanhSachPhongTheoLoai(maLoaiPhong);
        }
        public static DataTable LayDanhSachPhongTheoLoaiCoHieuChinh(int maLoaiPhong)
        {
            return PhongDAO.LayDanhSachPhongTheoLoaiCoHieuChinh(maLoaiPhong);
        }
        // Lay tat ca danh sach Phong theo Tinh trang Phong.
        public static DataTable LayDanhSachPhongTrong(int tinhTrang)
        {
            DataTable dt = new DataTable();
            return dt;
        }
        // Lay tat ca danh sach Phong theo Tinh trang Phong.
        public static DataTable LayDanhSachPhongTheoTinhTrang(int tinhTrang)
        {
            return PhongDAO.LayDanhSachPhongTheoTinhTrang(tinhTrang);
        }
        //Lay danh sach phong thue theo ten
        public static DataTable LayDanhSachPhongDaThue(string tenPhong)
        {
            return PhongDAO.LayDanhSachPhongDaThue(tenPhong);
        }
        public static bool TraPhong(int maPhong)
        {
            return PhongDAO.TraPhong(maPhong);
        }
        public static bool ThuePhong(int maPhong)
        {
            return PhongDAO.ThuePhong(maPhong);
        }
        // Lay danh sach phong theo thong tin tra cuu
        public static DataTable DanhSachPhongTraCuu(LoaiPhongDTO loaiPhongdto, PhongDTO phongdto)
        {
            return PhongDAO.DanhSachPhongTraCuu(loaiPhongdto, phongdto);
        }
    }
}
